import request from '/@/utils/request';

// 列表
export function SubSystemGetPagedList(params?: object) {
	return request({
		url: '/api/SubSystem/GetPagedList',
		params,
	});
}

// 新增
export function SubSystemCreate(data: any) {
	return request({
		url: 'api/SubSystem/Create',
		method: 'post',
		data,
	});
}
// 编辑
export function SubSystemUpdate(data: any, id: string) {
	return request({
		url: `api/SubSystem/Update/${id}`,
		method: 'put',
		data,
	});
}

// 删除
export function BatchDelete(data: any) {
	return request({
		url: 'api/SubSystem/BatchDelete',
		method: 'post',
		data,
	});
}
// 根据Id获取数据
export function SubSystemInfoId(id: string) {
	return request({
		url: `api/SubSystem/Get/${id}`,
	});
}
